import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
  
    {
      path: '/home',
      name: 'home',
      component: () => import('../components/home.vue'),
      // children:[
      //   // {
      //   //   path: '/InputBox',
      //   //   name: 'InputBox',
      //   //   component: () => import('../components/home/InputBox.vue')
      //   // },
     
      // ]
    },
    {
      path: '/add',
      name: 'add',
      component: () => import('../components/add.vue'),
     
    },
    ,{
      path:'/',
      redirect:'home',
      component:()=>import('../components/home.vue')
  },
  ]
})

export default router
